local liumin = fk.CreateSkill {
  name = "liumin",
  tags = { Skill.Compulsory  },
}

Fk:loadTranslationTable{
  ["liumin"] = "流民",
  [":liumin"] = "锁定技，当你受到伤害后，你回复1点体力。",
}

liumin:addEffect(fk.Damaged, {
  trigger = function(self, event, target, player, data)
    return
      target == player and
      player:isWounded() and
      player:hasSkill(liumin.name) and
      player:usedSkillTimes(liumin.name, Player.HistoryGame) == 0
  end,
  on_use = function(self, event, target, player, data)
    player.room:recover{
      who = player,
      num = 1,
      recoverBy = player,
      skillName = liumin.name,
    }
  end,
})

return liumin
